<script>
import config from "./config";
import { getToken } from "@/utils/auth";

export default {
  onLaunch: function () {
    this.initApp();
  },
  methods: {
    // 初始化应用
    initApp() {
      // 初始化应用配置
      this.initConfig();
    },
    initConfig() {
      this.globalData.config = config;
    },
    checkLogin() {
      if (!getToken()) {
        this.$tab.reLaunch("/pages/login");
      }
    },
  },
};
</script>

<style lang="scss">
@import "@/static/scss/index.scss";
@import "uview-ui/index.scss";
/deep/ .uni-tabbar {
  box-shadow: 2px 3px 10px rgb(36, 35, 35);
}
.flex-row {
  display: flex;
  flex-direction: row;
}
</style>
